//
//  DrillCourseCell.m
//  DefendHealth
//
//  Created by UNOHACHA on 17/2/21.
//  Copyright © 2017年 iMacOne. All rights reserved.
//

#import "DrillCourseCell.h"

@implementation DrillCourseCell
{
    
    
    
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        
        
        UIImageView * bigImg = [ReduceCode creatImageVeiwWithFrame:CGRectMake(0, 0, kScreenWidth, 145) imageName:@"" isCorner:NO];
        bigImg.backgroundColor = UIColorFromRGB(0xcccaca);
        [self.contentView addSubview:bigImg];
        
        UIImageView * typeImg = [ReduceCode creatImageVeiwWithFrame:CGRectMake(0, 0, 80, 30) imageName:@"gray-block" isCorner:NO];
//        typeImg.backgroundColor = UIColorFromRGB(0xcccaca);
        [self.contentView addSubview:typeImg];
        
        
        
        
        UILabel * starType = [ReduceCode creatLabelWithFrame:CGRectMake(10, 0, 80, 14) title:@"改善体质" titleColor:kWhiteColor font:14 textAlignment:NSTextAlignmentLeft];
        starType.centerY = typeImg.centerY;
        [self.contentView addSubview:starType];

        UILabel * titL = [ReduceCode creatLabelWithFrame:CGRectMake(0, 0, kScreenWidth, 18) title:@"初级燃脂变速跑" titleColor:UIColorFromRGB(0x1b100d) font:18 textAlignment:NSTextAlignmentCenter];
        titL.centerY = bigImg.centerY - titL.height-6;
        [self.contentView addSubview:titL];
        
        
        UILabel * usePeople = [ReduceCode creatLabelWithFrame:CGRectMake(0, 0, kScreenWidth, 16) title:@"2520人已使用" titleColor:UIColorFromRGB(0x1b100d) font:16 textAlignment:NSTextAlignmentCenter];
        usePeople.centerY = bigImg.centerY + usePeople.height+6;
        [self.contentView addSubview:usePeople];
    }
 
    return self;
}

@end
